<template>
  <div>
      user
  </div>
</template>

<script>
export default {
    beforeRouteLeave(to,from,next){
        if(confirm("您确定离开精彩的vip页面吗？"+from+to)){
            next()
        }else{
            next(false)
        }
    }
}
</script>

<style>

</style>